package cn.itcast.com.day05;

public class Test3 {
    public static void main(String[] args) {
        Person p = new Person();
        p.name = "我是马化腾";
        p.age = 50;
        PersonTest(p);
        double money = 100.00;
        doubleTest(money);
        System.out.println("方法执行之后的money"+money);
        System.out.println("方法执行之后的name"+p.name);

    }

    public static void doubleTest(double money){
        money = 200.00;
    }

    public static void PersonTest(Person person){
        System.out.println("传入的person的name"+person.name);
        person.name = "我是马云";
        System.out.println("赋值之后的name"+person.name);
    }
}
